<template>

</template>

<script>
	export default {
		data() {
			return {
				isBack:false,
			}
		},
		onLoad(e) {
      console.log(e)

			this.golocal(e.latitude, e.longitude, e.title)
		},
		 onHide() {
		    this.isBack = true
		  },
		onShow() {
			if (this.isBack) {
				uni.navigateBack({
					delta: 1,
				})
				this.isBack = false
			}
		},
		methods: {
			golocal(lat, lnt, title) {
				let that = this;
				uni.openLocation({
					latitude: Number(lat), //目标纬度
					longitude: Number(lnt), //目标经度
					name: title, //名称
					scale: 28
				});
			}
		},
	}
</script>

<style>
</style>